package com.mondo.financialwallet.data.entity;

import com.google.gson.annotations.SerializedName;

import java.text.DecimalFormat;
import java.util.List;

public class HoldProductListEntity extends BasisResponseEntity {


    /**
     * data : {"count":6,"data":[{"order_no":"0319031520303792509","pay_no":"0319031520303792509","status":3,"goods_id":23,"create_at":"2019-03-15 20:30:37","pay_at":"2019-03-15 20:30:37","goods_name":"委托周期90天认购费率2管理费率2赎回费率2封闭0","goods_profit":"0.00","uid":"686844","expire_at":"2019-06-13 20:30:37","goods_price":"100.00","expire_day":90,"hold_money":100,"goods_money":"100.00"},{"order_no":"0319031520262134055","pay_no":"0319031520262134055","status":3,"goods_id":22,"create_at":"2019-03-15 20:26:21","pay_at":"2019-03-15 20:26:22","goods_name":"定期90天封闭期0天","goods_profit":"0.00","uid":"686844","expire_at":"2019-03-16 20:26:22","goods_price":"50000.00","expire_day":1,"hold_money":50000,"goods_money":"50000.00"},{"order_no":"0319031520173230975","pay_no":"0319031520173230975","status":3,"goods_id":22,"create_at":"2019-03-15 20:17:32","pay_at":"2019-03-15 20:17:33","goods_name":"定期90天封闭期0天","goods_profit":"0.00","uid":"686844","expire_at":"2019-03-16 20:17:33","goods_price":"50000.00","expire_day":1,"hold_money":50000,"goods_money":"50000.00"},{"order_no":"0319031520085231482","pay_no":"0319031520085231482","status":3,"goods_id":22,"create_at":"2019-03-15 20:08:52","pay_at":"2019-03-15 20:08:53","goods_name":"定期90天封闭期0天","goods_profit":"0.00","uid":"686844","expire_at":"2019-03-16 20:08:53","goods_price":"50000.00","expire_day":1,"hold_money":50000,"goods_money":"50000.00"},{"order_no":"0119030814282642980","pay_no":"0119030814282642980","status":6,"goods_id":22,"create_at":"2019-03-08 14:28:26","pay_at":"2019-03-08 14:29:01","goods_name":"定期90天封闭期0天","goods_profit":"0.28","uid":"686844","expire_at":"2019-03-09 14:29:01","goods_price":"100.00","expire_day":"0","hold_money":100.28,"goods_money":"100.00"},{"order_no":"0119030814182597575","pay_no":"0119030814182597575","status":3,"goods_id":19,"create_at":"2019-03-08 14:18:25","pay_at":"2019-03-08 14:27:44","goods_name":"活期0天封闭0天","goods_profit":"0.70","uid":"686844","expire_at":"2019-03-08 14:27:44","goods_price":"100.00","expire_day":"0","hold_money":100.7,"goods_money":"100.00"}]}
     */

    private DataBeanX data;

    public DataBeanX getData() {
        return data;
    }

    public void setData(DataBeanX data) {
        this.data = data;
    }

    public static class DataBeanX {
        /**
         * count : 6
         * data : [{"order_no":"0319031520303792509","pay_no":"0319031520303792509","status":3,"goods_id":23,"create_at":"2019-03-15 20:30:37","pay_at":"2019-03-15 20:30:37","goods_name":"委托周期90天认购费率2管理费率2赎回费率2封闭0","goods_profit":"0.00","uid":"686844","expire_at":"2019-06-13 20:30:37","goods_price":"100.00","expire_day":90,"hold_money":100,"goods_money":"100.00"},{"order_no":"0319031520262134055","pay_no":"0319031520262134055","status":3,"goods_id":22,"create_at":"2019-03-15 20:26:21","pay_at":"2019-03-15 20:26:22","goods_name":"定期90天封闭期0天","goods_profit":"0.00","uid":"686844","expire_at":"2019-03-16 20:26:22","goods_price":"50000.00","expire_day":1,"hold_money":50000,"goods_money":"50000.00"},{"order_no":"0319031520173230975","pay_no":"0319031520173230975","status":3,"goods_id":22,"create_at":"2019-03-15 20:17:32","pay_at":"2019-03-15 20:17:33","goods_name":"定期90天封闭期0天","goods_profit":"0.00","uid":"686844","expire_at":"2019-03-16 20:17:33","goods_price":"50000.00","expire_day":1,"hold_money":50000,"goods_money":"50000.00"},{"order_no":"0319031520085231482","pay_no":"0319031520085231482","status":3,"goods_id":22,"create_at":"2019-03-15 20:08:52","pay_at":"2019-03-15 20:08:53","goods_name":"定期90天封闭期0天","goods_profit":"0.00","uid":"686844","expire_at":"2019-03-16 20:08:53","goods_price":"50000.00","expire_day":1,"hold_money":50000,"goods_money":"50000.00"},{"order_no":"0119030814282642980","pay_no":"0119030814282642980","status":6,"goods_id":22,"create_at":"2019-03-08 14:28:26","pay_at":"2019-03-08 14:29:01","goods_name":"定期90天封闭期0天","goods_profit":"0.28","uid":"686844","expire_at":"2019-03-09 14:29:01","goods_price":"100.00","expire_day":"0","hold_money":100.28,"goods_money":"100.00"},{"order_no":"0119030814182597575","pay_no":"0119030814182597575","status":3,"goods_id":19,"create_at":"2019-03-08 14:18:25","pay_at":"2019-03-08 14:27:44","goods_name":"活期0天封闭0天","goods_profit":"0.70","uid":"686844","expire_at":"2019-03-08 14:27:44","goods_price":"100.00","expire_day":"0","hold_money":100.7,"goods_money":"100.00"}]
         */

        private int count;
        private List<DataBean> data;

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean {
            /**
             * order_no : 0319031520303792509
             * pay_no : 0319031520303792509
             * status : 3
             * goods_id : 23
             * create_at : 2019-03-15 20:30:37
             * pay_at : 2019-03-15 20:30:37
             * goods_name : 委托周期90天认购费率2管理费率2赎回费率2封闭0
             * goods_profit : 0.00
             * uid : 686844
             * expire_at : 2019-06-13 20:30:37
             * goods_price : 100.00
             * expire_day : 90
             * hold_money : 100
             * goods_money : 100.00
             */

            private String order_no;
            private String pay_no;
            @SerializedName("status") private int statusX;
            private int goods_id;
            private String create_at;
            private String pay_at;
            private String goods_name;
            private String goods_profit;
            private String uid;
            private String expire_at;
            private String goods_price;
            private double expire_day;
            private double hold_money;
            private String goods_money;

            public String getOrder_no() {
                return order_no;
            }

            public void setOrder_no(String order_no) {
                this.order_no = order_no;
            }

            public String getPay_no() {
                return pay_no;
            }

            public void setPay_no(String pay_no) {
                this.pay_no = pay_no;
            }

            public int getStatusX() {
                return statusX;
            }

            public void setStatusX(int statusX) {
                this.statusX = statusX;
            }

            public int getGoods_id() {
                return goods_id;
            }

            public void setGoods_id(int goods_id) {
                this.goods_id = goods_id;
            }

            public String getCreate_at() {
                return create_at;
            }

            public void setCreate_at(String create_at) {
                this.create_at = create_at;
            }

            public String getPay_at() {
                return pay_at;
            }

            public void setPay_at(String pay_at) {
                this.pay_at = pay_at;
            }

            public String getGoods_name() {
                return goods_name;
            }

            public void setGoods_name(String goods_name) {
                this.goods_name = goods_name;
            }

            public String getGoods_profit() {
                return goods_profit;
            }

            public void setGoods_profit(String goods_profit) {
                this.goods_profit = goods_profit;
            }

            public String getUid() {
                return uid;
            }

            public void setUid(String uid) {
                this.uid = uid;
            }

            public String getExpire_at() {
                return expire_at;
            }

            public void setExpire_at(String expire_at) {
                this.expire_at = expire_at;
            }

            public String getGoods_price() {
                return goods_price;
            }

            public void setGoods_price(String goods_price) {
                this.goods_price = goods_price;
            }

            public String getExpire_day() {
                return new DecimalFormat("####.##").format(expire_day);
            }

            public void setExpire_day(double expire_day) {
                this.expire_day = expire_day;
            }

            public double getHold_money() {
                return hold_money;
            }

            public void setHold_money(int hold_money) {
                this.hold_money = hold_money;
            }

            public String getGoods_money() {
                return goods_money;
            }

            public void setGoods_money(String goods_money) {
                this.goods_money = goods_money;
            }
        }
    }
}
